package com.jinlia.show.modules.base.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jinlia.show.common.core.entity.BaseEntity;
import com.jinlia.show.modules.base.config.DynamicSchemaConfig;
import lombok.Data;

@Data
@TableName(value = "erp_file", schema = DynamicSchemaConfig.schema_system, autoResultMap = true)
public class File extends BaseEntity {

    public File() {
    }
    public File(String filename) {
        this.filename = filename;
    }
    public File(String filename, String url) {
        this.filename = filename;
        this.url = url;
    }
    @TableId()
    private Long id;

    /**
     * 文件名
     */
    private String filename;

    /**
     * 文件访问路径
     */
    @TableField(exist = false)
    private String url;
}
